package top.qitun.modal.request;

import java.util.Date;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotBlank;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModelProperty;
import top.qitun.model.request.RestfulRequest;

/**
 * @author Zhao Junjian
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class ShopCreateRequest extends RestfulRequest {
    private static final long serialVersionUID = -7019570768557438079L;

    @NotNull
    @NotBlank
    @Size(min = 2, max = 50, message = "2到50位汉字数字字母组合")
    @JsonProperty("name")
    @ApiModelProperty(value = "店铺名称", example = "旗舰店", required = true)
    private String name;

    @NotNull
    @Size(min = 2, max = 150, message = "2到150位汉字数字字母组合")
    @JsonProperty("address")
    @ApiModelProperty(value = "店铺地址", example = "深圳南山区", required = true)
    private String address;
    
    @NotNull
    @Pattern(regexp = "^\\d{11}$", message = "请输入11位手机号")
    @JsonProperty("contactPhone")
    @ApiModelProperty(value = "联系电话", example = "18665817096", required = true)
    private String contactPhone;
    
    @NotNull
    @JsonProperty("manager")
    @ApiModelProperty(value = "经理", example = "6", required = true)
    private int manager;
    
    @JsonProperty("startTime")
    @ApiModelProperty(value = "开店时间", example = "2017-06-15", required = true)
    private String startTime;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getContactPhone() {
		return contactPhone;
	}

	public void setContactPhone(String contactPhone) {
		this.contactPhone = contactPhone;
	}

	public int getManager() {
		return manager;
	}

	public void setManager(int manager) {
		this.manager = manager;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

    
}
